﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace EnmineKaitlin.MasterPage
{
    public partial class AdminDefault : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] != null && Session["username"].ToString() != "")
            {
                lblUser.Text = Session["fullname"].ToString();
            }
            else {
                Response.Redirect("~/admin/login.aspx");
            }            
        }
        protected void lbtLogout_Click(object sender, EventArgs e)
        {
            Session["username"] = "";
            Session["permission"] = "";
            Session["fullname"] = "";
            Response.Redirect("~/admin/login.aspx");
        }
    }
}
